home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 1.2 KB | 39 lines | [TEXT/GEOL] |
- Item 4764306 22-July-89 14:23
-
- From: D2215 Dac SW, Wilma Blair, PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- cc: MACAPP.TEST MacApp SQA Team
-
- Sub: TPopup.SetCurrentItem fix
-
- { this is a revision to my earlier 2.0b9 fix list. Using this will correct a
- problem where a dimmed Popup is un-dimmed, colors are messed up, and the wrong
- area of the screen is written to when SetCurrentItem is called from outside
- TPopup.}
-
- PROCEDURE TPopup.SetCurrentItem(item: INTEGER; redraw: BOOLEAN);
- VAR
- menuRect: Rect;
- BEGIN
- IF (fMenuHandle <> NIL) & (item <> fCurrentItem) THEN
- BEGIN
- IF fCurrentItem <> 0 THEN
- SetItemMark(fMenuHandle, fCurrentItem, ' ');
- IF item <> 0 THEN
- SetItemMark(fMenuHandle, item, CHR(checkMark));
- fCurrentItem := item;
- END;
- IF redraw THEN
- BEGIN
- CalcMenuRect (menuRect);
- InsetRect (menuRect, -1, -1); { otherwise we lose a pixel }
- InvalidRect (menuRect ); { InvalidRect does focus }
- END;
- END;
-
- Regards, Les Caudle
-
-
-